package com.macro.mall.model;

import java.util.ArrayList;
import java.util.List;

public class PmProdSpecStockTempExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PmProdSpecStockTempExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdIsNull() {
            addCriterion("prod_spec_id is null");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdIsNotNull() {
            addCriterion("prod_spec_id is not null");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdEqualTo(Long value) {
            addCriterion("prod_spec_id =", value, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdNotEqualTo(Long value) {
            addCriterion("prod_spec_id <>", value, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdGreaterThan(Long value) {
            addCriterion("prod_spec_id >", value, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdGreaterThanOrEqualTo(Long value) {
            addCriterion("prod_spec_id >=", value, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdLessThan(Long value) {
            addCriterion("prod_spec_id <", value, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdLessThanOrEqualTo(Long value) {
            addCriterion("prod_spec_id <=", value, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdIn(List<Long> values) {
            addCriterion("prod_spec_id in", values, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdNotIn(List<Long> values) {
            addCriterion("prod_spec_id not in", values, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdBetween(Long value1, Long value2) {
            addCriterion("prod_spec_id between", value1, value2, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andProdSpecIdNotBetween(Long value1, Long value2) {
            addCriterion("prod_spec_id not between", value1, value2, "prodSpecId");
            return (Criteria) this;
        }

        public Criteria andTempNameIsNull() {
            addCriterion("temp_name is null");
            return (Criteria) this;
        }

        public Criteria andTempNameIsNotNull() {
            addCriterion("temp_name is not null");
            return (Criteria) this;
        }

        public Criteria andTempNameEqualTo(String value) {
            addCriterion("temp_name =", value, "tempName");
            return (Criteria) this;
        }

        public Criteria andTempNameNotEqualTo(String value) {
            addCriterion("temp_name <>", value, "tempName");
            return (Criteria) this;
        }

        public Criteria andTempNameGreaterThan(String value) {
            addCriterion("temp_name >", value, "tempName");
            return (Criteria) this;
        }

        public Criteria andTempNameGreaterThanOrEqualTo(String value) {
            addCriterion("temp_name >=", value, "tempName");
            return (Criteria) this;
        }

        public Criteria andTempNameLessThan(String value) {
            addCriterion("temp_name <", value, "tempName");
            return (Criteria) this;
        }

        public Criteria andTempNameLessThanOrEqualTo(String value) {
            addCriterion("temp_name <=", value, "tempName");
            return (Criteria) this;
        }

        public Criteria andTempNameLike(String value) {
            addCriterion("temp_name like", value, "tempName");
            return (Criteria) this;
        }

        public Criteria andTempNameNotLike(String value) {
            addCriterion("temp_name not like", value, "tempName");
            return (Criteria) this;
        }

        public Criteria andTempNameIn(List<String> values) {
            addCriterion("temp_name in", values, "tempName");
            return (Criteria) this;
        }

        public Criteria andTempNameNotIn(List<String> values) {
            addCriterion("temp_name not in", values, "tempName");
            return (Criteria) this;
        }

        public Criteria andTempNameBetween(String value1, String value2) {
            addCriterion("temp_name between", value1, value2, "tempName");
            return (Criteria) this;
        }

        public Criteria andTempNameNotBetween(String value1, String value2) {
            addCriterion("temp_name not between", value1, value2, "tempName");
            return (Criteria) this;
        }

        public Criteria andTempTypeIsNull() {
            addCriterion("temp_type is null");
            return (Criteria) this;
        }

        public Criteria andTempTypeIsNotNull() {
            addCriterion("temp_type is not null");
            return (Criteria) this;
        }

        public Criteria andTempTypeEqualTo(Integer value) {
            addCriterion("temp_type =", value, "tempType");
            return (Criteria) this;
        }

        public Criteria andTempTypeNotEqualTo(Integer value) {
            addCriterion("temp_type <>", value, "tempType");
            return (Criteria) this;
        }

        public Criteria andTempTypeGreaterThan(Integer value) {
            addCriterion("temp_type >", value, "tempType");
            return (Criteria) this;
        }

        public Criteria andTempTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("temp_type >=", value, "tempType");
            return (Criteria) this;
        }

        public Criteria andTempTypeLessThan(Integer value) {
            addCriterion("temp_type <", value, "tempType");
            return (Criteria) this;
        }

        public Criteria andTempTypeLessThanOrEqualTo(Integer value) {
            addCriterion("temp_type <=", value, "tempType");
            return (Criteria) this;
        }

        public Criteria andTempTypeIn(List<Integer> values) {
            addCriterion("temp_type in", values, "tempType");
            return (Criteria) this;
        }

        public Criteria andTempTypeNotIn(List<Integer> values) {
            addCriterion("temp_type not in", values, "tempType");
            return (Criteria) this;
        }

        public Criteria andTempTypeBetween(Integer value1, Integer value2) {
            addCriterion("temp_type between", value1, value2, "tempType");
            return (Criteria) this;
        }

        public Criteria andTempTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("temp_type not between", value1, value2, "tempType");
            return (Criteria) this;
        }

        public Criteria andTempValueIsNull() {
            addCriterion("temp_value is null");
            return (Criteria) this;
        }

        public Criteria andTempValueIsNotNull() {
            addCriterion("temp_value is not null");
            return (Criteria) this;
        }

        public Criteria andTempValueEqualTo(String value) {
            addCriterion("temp_value =", value, "tempValue");
            return (Criteria) this;
        }

        public Criteria andTempValueNotEqualTo(String value) {
            addCriterion("temp_value <>", value, "tempValue");
            return (Criteria) this;
        }

        public Criteria andTempValueGreaterThan(String value) {
            addCriterion("temp_value >", value, "tempValue");
            return (Criteria) this;
        }

        public Criteria andTempValueGreaterThanOrEqualTo(String value) {
            addCriterion("temp_value >=", value, "tempValue");
            return (Criteria) this;
        }

        public Criteria andTempValueLessThan(String value) {
            addCriterion("temp_value <", value, "tempValue");
            return (Criteria) this;
        }

        public Criteria andTempValueLessThanOrEqualTo(String value) {
            addCriterion("temp_value <=", value, "tempValue");
            return (Criteria) this;
        }

        public Criteria andTempValueLike(String value) {
            addCriterion("temp_value like", value, "tempValue");
            return (Criteria) this;
        }

        public Criteria andTempValueNotLike(String value) {
            addCriterion("temp_value not like", value, "tempValue");
            return (Criteria) this;
        }

        public Criteria andTempValueIn(List<String> values) {
            addCriterion("temp_value in", values, "tempValue");
            return (Criteria) this;
        }

        public Criteria andTempValueNotIn(List<String> values) {
            addCriterion("temp_value not in", values, "tempValue");
            return (Criteria) this;
        }

        public Criteria andTempValueBetween(String value1, String value2) {
            addCriterion("temp_value between", value1, value2, "tempValue");
            return (Criteria) this;
        }

        public Criteria andTempValueNotBetween(String value1, String value2) {
            addCriterion("temp_value not between", value1, value2, "tempValue");
            return (Criteria) this;
        }

        public Criteria andTempDescIsNull() {
            addCriterion("temp_desc is null");
            return (Criteria) this;
        }

        public Criteria andTempDescIsNotNull() {
            addCriterion("temp_desc is not null");
            return (Criteria) this;
        }

        public Criteria andTempDescEqualTo(String value) {
            addCriterion("temp_desc =", value, "tempDesc");
            return (Criteria) this;
        }

        public Criteria andTempDescNotEqualTo(String value) {
            addCriterion("temp_desc <>", value, "tempDesc");
            return (Criteria) this;
        }

        public Criteria andTempDescGreaterThan(String value) {
            addCriterion("temp_desc >", value, "tempDesc");
            return (Criteria) this;
        }

        public Criteria andTempDescGreaterThanOrEqualTo(String value) {
            addCriterion("temp_desc >=", value, "tempDesc");
            return (Criteria) this;
        }

        public Criteria andTempDescLessThan(String value) {
            addCriterion("temp_desc <", value, "tempDesc");
            return (Criteria) this;
        }

        public Criteria andTempDescLessThanOrEqualTo(String value) {
            addCriterion("temp_desc <=", value, "tempDesc");
            return (Criteria) this;
        }

        public Criteria andTempDescLike(String value) {
            addCriterion("temp_desc like", value, "tempDesc");
            return (Criteria) this;
        }

        public Criteria andTempDescNotLike(String value) {
            addCriterion("temp_desc not like", value, "tempDesc");
            return (Criteria) this;
        }

        public Criteria andTempDescIn(List<String> values) {
            addCriterion("temp_desc in", values, "tempDesc");
            return (Criteria) this;
        }

        public Criteria andTempDescNotIn(List<String> values) {
            addCriterion("temp_desc not in", values, "tempDesc");
            return (Criteria) this;
        }

        public Criteria andTempDescBetween(String value1, String value2) {
            addCriterion("temp_desc between", value1, value2, "tempDesc");
            return (Criteria) this;
        }

        public Criteria andTempDescNotBetween(String value1, String value2) {
            addCriterion("temp_desc not between", value1, value2, "tempDesc");
            return (Criteria) this;
        }

        public Criteria andTempSeqIsNull() {
            addCriterion("temp_seq is null");
            return (Criteria) this;
        }

        public Criteria andTempSeqIsNotNull() {
            addCriterion("temp_seq is not null");
            return (Criteria) this;
        }

        public Criteria andTempSeqEqualTo(Integer value) {
            addCriterion("temp_seq =", value, "tempSeq");
            return (Criteria) this;
        }

        public Criteria andTempSeqNotEqualTo(Integer value) {
            addCriterion("temp_seq <>", value, "tempSeq");
            return (Criteria) this;
        }

        public Criteria andTempSeqGreaterThan(Integer value) {
            addCriterion("temp_seq >", value, "tempSeq");
            return (Criteria) this;
        }

        public Criteria andTempSeqGreaterThanOrEqualTo(Integer value) {
            addCriterion("temp_seq >=", value, "tempSeq");
            return (Criteria) this;
        }

        public Criteria andTempSeqLessThan(Integer value) {
            addCriterion("temp_seq <", value, "tempSeq");
            return (Criteria) this;
        }

        public Criteria andTempSeqLessThanOrEqualTo(Integer value) {
            addCriterion("temp_seq <=", value, "tempSeq");
            return (Criteria) this;
        }

        public Criteria andTempSeqIn(List<Integer> values) {
            addCriterion("temp_seq in", values, "tempSeq");
            return (Criteria) this;
        }

        public Criteria andTempSeqNotIn(List<Integer> values) {
            addCriterion("temp_seq not in", values, "tempSeq");
            return (Criteria) this;
        }

        public Criteria andTempSeqBetween(Integer value1, Integer value2) {
            addCriterion("temp_seq between", value1, value2, "tempSeq");
            return (Criteria) this;
        }

        public Criteria andTempSeqNotBetween(Integer value1, Integer value2) {
            addCriterion("temp_seq not between", value1, value2, "tempSeq");
            return (Criteria) this;
        }

        public Criteria andTempStatusIsNull() {
            addCriterion("temp_status is null");
            return (Criteria) this;
        }

        public Criteria andTempStatusIsNotNull() {
            addCriterion("temp_status is not null");
            return (Criteria) this;
        }

        public Criteria andTempStatusEqualTo(Integer value) {
            addCriterion("temp_status =", value, "tempStatus");
            return (Criteria) this;
        }

        public Criteria andTempStatusNotEqualTo(Integer value) {
            addCriterion("temp_status <>", value, "tempStatus");
            return (Criteria) this;
        }

        public Criteria andTempStatusGreaterThan(Integer value) {
            addCriterion("temp_status >", value, "tempStatus");
            return (Criteria) this;
        }

        public Criteria andTempStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("temp_status >=", value, "tempStatus");
            return (Criteria) this;
        }

        public Criteria andTempStatusLessThan(Integer value) {
            addCriterion("temp_status <", value, "tempStatus");
            return (Criteria) this;
        }

        public Criteria andTempStatusLessThanOrEqualTo(Integer value) {
            addCriterion("temp_status <=", value, "tempStatus");
            return (Criteria) this;
        }

        public Criteria andTempStatusIn(List<Integer> values) {
            addCriterion("temp_status in", values, "tempStatus");
            return (Criteria) this;
        }

        public Criteria andTempStatusNotIn(List<Integer> values) {
            addCriterion("temp_status not in", values, "tempStatus");
            return (Criteria) this;
        }

        public Criteria andTempStatusBetween(Integer value1, Integer value2) {
            addCriterion("temp_status between", value1, value2, "tempStatus");
            return (Criteria) this;
        }

        public Criteria andTempStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("temp_status not between", value1, value2, "tempStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}